window: Defer focus setting until after paint
authorMatthias Clasen <mclasen@redhat.com>
Fri, 9 Apr 2021 23:38:25 +0000 (19:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 9 Apr 2021 23:44:10 +0000 (19:44 -0400)
commit4a76abffd4d62cbbb7b795008c86659a966cbf0d
tree975b947d44d3d69789a0855056b641ee30f93a35
parentd15b0afca996532130c1602a7d02659731c329df
window: Defer focus setting until after paint

Commit 3dbf5038fab8eb0d8c11 tried to defer focus changes
until after rendering is done. But it failed to do so, since
the toplevel ::render handler is still before rendering of
popups that are attached to that toplevel. To do this
properly, we need to do it in the AFTER_PAINT frame clock
phase.

Fixes: #3725
gtk/gtkwindow.c